import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'index_logic.dart';

/// <summary>
/// todo: app主页
/// author：zwb
/// dateTime： 2021/11/3 11:46
/// filePath： lib/constant/system.dart
/// desc:
/// <summary>
///
class IndexPage extends StatefulWidget {
  @override
  _IndexPageState createState() => _IndexPageState();
}

class _IndexPageState extends State<IndexPage> {
  final logic = Get.put(IndexLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(child: Column(
        children: [
          MaterialButton(onPressed: (){

          },child: Text("获取权限 test"),),
        ],
      ),),
    );
  }

  @override
  void dispose() {
    Get.delete<IndexLogic>();
    super.dispose();
  }
}